export default class sheng extends Laya.Script {
    // 更多参数说明请访问: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-0
    owner=this.owner as Laya.Sprite;
    btn_start;
    constructor() { super(); }

        onAwake(){
            Laya.stage.on("gamerover3",this,function(){
                this.owner.visible=true;
            })
            this.btn_start=this.owner.getChildByName("btn_start");
            this.btn_start.on(Laya.Event.CLICK,this,function(){
                this.owner.visible=false;
                Laya.stage.event("start")
            })
        }
}